<div id="content">
  <?php echo include_partial('global/viewErrors', array('forms' => array($form), 'global' => !empty ($errorCollector)?$errorCollector->getRawValue():array()));  ?>
  
  <div class="content_inner">
    <form action="" id="frm_name" method="post">
      <?php echo $form['_csrf_token']->render(); ?>
        <h2>Create User</h2>
        <caption>&nbsp;</caption>
        <table width="100%" cellpadding="0" cellspacing="0" border="0" id="table1" class="tablesorter">
        <tbody>
            <tr class="row1">
              <td><label>Username <em>*</em></label></td>
              <td>
                <?php if ($isEdit) : ?>
                  <?php echo $user->getUsername(); ?>
                <?php else : ?>
                  <?php echo $form[UserForm::FIELD_USERNAME]->render(); ?></td>
                <?php endif; ?>
            </tr>
            <tr class="row2">
              <td><label>First Name<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_FIRST_NAME]->render(); ?></td>
            </tr>
            <tr class="row2">
              <td><label>Last Name<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_LAST_NAME]->render(); ?></td>
            </tr>
            <tr class="row2">
              <td><label>Email<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_EMAIL]->render(); ?></td>
            </tr>
            <tr class="row2">
              <td><label>Password<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_PASSWORD]->render(); ?></td>
            </tr>
            <tr class="row2">
              <td><label>Confirm Password<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_CONF_PASSWORD]->render(); ?></td>
            </tr>
            <tr class="row2">
              <td><label>User Group<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_USER_GROUP_ID]->render(); ?></td>
            </tr>
            <tr class="row2">
              <td><label>Status<em>*</em></label></td>
              <td><?php echo $form[UserForm::FIELD_STATUS]->render(); ?></td>
            </tr>

            <tr class="row1">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr class="row2">
              <td>&nbsp;</td>
              <td>
                <div class="buttons">
                  <button type="submit" class="positive">Submit</button>
                  <button type="reset" class="positive">Reset</button>
                </div>
              </td>
            </tr>
        </tbody>
      </table>
        
    </form>
  </div>
</div>